<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .test {
      width: 200px;
      height: 100px;
      background-color: skyblue;
      text-align: center;
      line-height: 100px;
    }
  </style>
</head>

<body>
  <div id='app'>
    <button @click="fn">{{is_show}}</button>
    <div v-show="flag" class="test">大家好，我是FindYou</div>
  </div>
  <script src="../vue.js"></script>
  <script>
    const test = new Vue({
      el: '#app',
      data: {
        is_show: '切换显示隐藏',
        flag: 'true'
      },
      methods: {
        fn() {
          // console.log('你好啊');
          this.flag = !this.flag
        }
      }
    })
  </script>
</body>

</html>